package cn.zkw.service.impl;

import cn.zkw.mapping.IBobingDao;
import cn.zkw.service.BobingService;
import cn.zkw.vo.Bobing;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BobingImpl implements BobingService {
    @Autowired
    IBobingDao dao;

    @Override
    public boolean addBobing(Bobing bobing) {
        return dao.addBobing(bobing)>=1;
    }

    @Override
    public Bobing selectByS_numberByCurrentDay(Bobing bobing) {
        return dao.selectByS_numberByCurrentDay(bobing);
    }

    @Override
    public List<Bobing> selectAllByNumber(Bobing bobing) {
        return dao.selectAllByNumber(bobing);
    }
}
